﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ManagerMachine
{
    class Program
    {
        static ServerMachineGroup machinegroup;
        static void Main(string[] args)
        {
            Console.Title = "Machine Manager";
            machinegroup = new ServerMachineGroup();
            machinegroup.StartLoginServer();
            Console.WriteLine("Enter to Kill All Process...");
            Console.ReadLine();
            machinegroup.manager_process.KillAll();
            Console.WriteLine("Stop all Process...");
            Console.WriteLine("Enter to Close Machine Manager...");
            AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);            
            Console.ReadLine();
        }

        static void CurrentDomain_ProcessExit(object sender, EventArgs e)
        {
           
        }
    }
}
